#pragma once

#include <QItemDelegate>

class QTimeModel;
class QTimeDelegate : public QItemDelegate
{
    Q_OBJECT
public:
    explicit QTimeDelegate(QTimeModel *m, QObject *parent = nullptr);

    virtual void paint(QPainter *painter, const QStyleOptionViewItem &option,
        const QModelIndex &index) const override;

private:
    QTimeModel *_timeModel{ nullptr };
};